/***************************************************************************
 *   Copyright (C) 2007 by Ivan Vasić                                      *
 *   ivasic@gmail.com                                                      *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef MODELUSER_H
#define MODELUSER_H

#include "model.h"

class QString;

#include <QDateTime>

/**
 * @class ModelUser
 * @brief Model user objekta
 * @author Ivan Vasić <ivasic@gmail.com>
*/
class ModelUser : public Model
{
		Q_OBJECT
	public:
		ModelUser(const QString id, QObject *parent = 0);
		~ModelUser();

		QString password() const { return m_password; }

		QString username() const { return m_username; }

		QString passkey() const { return m_passkey; }

		QString email() const { return m_email; }

		quint64 uploaded() const { return m_uploaded; }

		quint64 downloaded() const { return m_downloaded; }

		QString name() const { return m_name; }

		const QDateTime& joined() const { return m_joined; }

	protected:

		QString m_username;
		QString m_password;
		QString m_passkey;
		QString m_email;
		quint64 m_uploaded;
		quint64 m_downloaded;
		QString m_name;
		QDateTime m_joined;

};

#endif
